<?php $this->load->view("common/header") ?>
<script type="text/javascript">
$(function() {
	//	$( "#job_start" ).datepicker({ dateFormat: 'yy-mm-dd' });
	});
</script>
<body>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td  align="left" valign="top"><?php $this->load->view("nav/main") ?></td>
      <td width="1265" valign="top">
      <div id="crum">
<?php echo $crum ?>
</div><br>

      <table width="100%" border="0" cellspacing="0" cellpadding="5" rules="rows">
        <tr class="panelHeaderBgColor">
          <td width="20%" class="tblHeader">Client</td>
          <td width="24%" class="tblHeader">Job #</td>
          <td width="23%" class="tblHeader">Tech</td>
          <td width="15%" class="tblHeader">Start Date</td>
          <td width="9%" class="tblHeader">
          <select name="select" id="select">
          <?php foreach($status as $st) { ?>
          	<option value="<?php echo $st['lu_value'] ?>"><?php echo $st['lu_lable'] ?></option>
          <?php } ?>
          </select></td>
          <td width="9%">&nbsp;</td>
        </tr>
        <?php foreach($wls as $wl) { ?>
        <tr class="tblBody panelTrBorderBot">
          <td><?php echo $wl['company_name'] ?></td>
          <td>#<?php echo $wl['job_id']. " - " .word_limiter($wl['job_subject'],5) ?></td>
          <td><?php echo $wl['fullname'] ?></td>
          <td><?php echo $wl['job_start'] ?></td>
          <td><?php echo $wl['job_status'] ?></td>
          <td align="right"><select class="worklog_action" name="worklog_action" id="worklog_action_<?php echo $wl['id'] ?>">
            <option value="0,<?php echo $wl['id'] ?>">Action</option>
            <option value="1,<?php echo $wl['id'] ?>">Edit Work Log</option>
            <option value="2,<?php echo $wl['id'] ?>">Tech Details</option>
            <option value="3,<?php echo $wl['job_id'] ?>">Edit Job</option>
          </select></td>
        </tr>
       <?php } ?>
      </table></td>
    </tr>
</table>

<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
